{% extends 'web_templates/public/base.html' %}
{% block title %}{{ g.doc_first.title }} - {{ g.sys.web_name }}{% endblock %}
{% block keywords %}{% if g.doc_first.keyword %}{{ g.doc_first.keyword }} {% else %}{{ g.sys.web_all_key }}
{% endif %}{% endblock %}
{% block description %}{% if g.doc_first.description %}{{ g.doc_first.description }} {% else %}
    {{ g.sys.web_description }}{% endif %}{% endblock %}

{% block content_left %}
    <div class="positionbar">
        <ul class="bread clearfix">
            <li class="ico"><img src="{{ url_for('static',filename='tl_cms/images/ico_07.png') }}"></li>
            <li><a href="{{ url_for('web_bp.tl_index') }}">首页</a></li>
            <li>
                <a href="{{ url_for('web_bp.list_article',uuid=g.doc_first.pro.uuid) }}">{{ g.doc_first.pro.column_name }}</a>
            </li>
            <li class="last">{{ g.doc_first.title }}</li>
        </ul>
    </div>
    <h1 class="main-tit2">
        <span class="black f20 fb"><a href="">{{ g.doc_first.title }}</a></span>
    </h1>
    <p class="icogroup lh180 loginfo">
        <span class="ico-list">
            <span class="icon icon-01"></span>发布：<a title="{{ g.doc_first.author }}">{{ g.doc_first.author }}</a></span>
        <span class="ico-list"><span class="icon icon-02"></span>时间：{{ g.doc_first.update_time }}</span>
        <span class="ico-list"><span class="icon icon-03"></span>分类： <a
                href="{{ url_for('web_bp.list_article',uuid=g.doc_first.pro.uuid) }}">{{ g.doc_first.pro.column_name }}</a>
	</span>
        <span class="ico-list"><span class="icon icon-04"></span>点击数:{{ g.doc_first.clicks }}</span></p>
    <div class="art-content pt10 f16 lh200">
        {{ g.doc_first.content|safe }}
    </div>
    <!--内容结束-->
    <div class="tip-bar mt20 clearfix">
        <span class="tit">温馨提示</span>如有转载或引用以上内容之必要，敬请将<a href="{{ url_for('web_bp.article_article',uuid=g.doc_first.uuid) }}" target="_blank" style="color:#00AA98;">本文链接</a>
        作为出处标注，谢谢合作！
    </div>
    <div class="tc p10 nextlog">
    {% if g.per %}
    &lt;&lt; <a href="{{ url_for('web_bp.article_article',uuid=g.per.uuid) }}" title="{{ g.per.title }}">{{ g.per.title[:22] }}</a>
    {% endif %}
    {% if g.per and g.next %}
    <span class="gray-4"> | </span>
    {% endif %}
        {% if g.next %}
        <a href="{{ url_for('web_bp.article_article',uuid=g.next.uuid) }}" title="{{ g.next.title }}">{{ g.next.title[:22] }}</a> &gt;&gt;
        {% endif %}
    </div>
    <div>
        {% for ad in g.other.ad %}{% if ad.id==5 and ad.status==1 %}{{ ad.ad_code|safe }}{% endif %}{% endfor %}
    </div>
    <div class="link-box">
        <h3>相关文章</h3>
        <ul class="ullist4">
            {% for document in (g.doc_first.pro.document_model|sort(attribute='id', reverse=true))[:8] %}
            <li><span class="time">{{ document.update_time }}</span>
                <a href="{{ url_for('web_bp.article_article',uuid=document.uuid) }}" title="{{ document.title }}">{{ document.title }}</a>
            </li>
            {% endfor %}
            <!-- 8个 -->
        </ul>
    </div>
    <!--畅言读后表情-->
    <div class="link-box">
        <h3>评论区域</h3>
    </div>
    <!-- 畅言评论代码 自适应 -->
{% endblock %}